<template>
  <div>
    <h2>这是商品列表-演示</h2>
    <ul>
      <li @click=" $router.push({name:'detail'}) ">商品1</li>
      <li @click=" $router.push('/goods/detail') ">商品2</li>
    </ul>
    <RouterView />
  </div>
</template>

<script setup>
import {RouterView} from "vue-router";
</script>